package com.bootssm.dao;

import com.bootssm.entity.User;
import com.bootssm.entity.UserLogin;
import com.bootssm.entity.UserVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @className: UserMapper
 * @description: 用户
 * @author: Mr.Song
 * @date: 2024/01/09 16:05
 **/
public interface UserMapper {

    public List<User> loninByUsernameAndPassword(UserLogin userLogin);//登陆

    public List<User> findAllUser(UserVO userVO);//查找所有用户或者搜索用户

    public User findUserByid(String userid);//根据ID查找用户
    public void addUser(User user);//添加用户


      public void updateUser(User user);//修改


     public void deleteUserById(String userid);//删除

     public Integer getCount(UserVO userVO);  //总条数
}
